package com.goodmr.passport.log;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 日志详情数据实体
 *
 * 建议存储到文档型数据库中（如：mongodb）
 *
 * @author <a href="mailto:bingdong13@msn.com">bigo</a>
 */
@Entity
@Table(name = "log_detail")
@Data
class LogDetailEntity {

    /**
     * 日志ID
     */
    @Id
    @Column(name = "log_id", length = 20, nullable = false)
    private Long logId;

    /**
     * 日志内容
     */
    @Column(length = 1000)
    private String content;
}
